package java51_19;

import java.util.Scanner;

public class SexTest {

	public static void main(String[] args) {
		// Student s = new Student("老吴", "193939", 24, Sex.妖);
		// System.out.println(s);
		// System.out.println(Sex.妖.ordinal());// 序号
		// System.out.println(Sex.女.name());
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入姓名：");
		Student s = new Student();
		s.setName(sc.next());
		System.out.println("age:");
		s.setAge(sc.nextInt());
		System.out.println("手机号：");
		s.setTele(sc.next());
		System.out.println("性别：");
		String sexStr = sc.next();
		Sex ss = Sex.valueOf(sexStr);
		s.setSex(ss);
		s.setZhuangtai(XuexiZhuangtai.ZAIDU);
		System.out.println(s);
	}

}
